all: discovery registry
discovery: discovery.cc main.pb.cc
	g++ -o $@ $^ -std=c++17 -lspdlog -lfmt -lgflags -letcd-cpp-api -lcpprest -lbrpc -lssl -lcrypto -lprotobuf -lleveldb -lpthread -ldl
registry: registry.cc main.pb.cc
	g++ -o $@ $^ -std=c++17 -lspdlog -lfmt -lgflags -letcd-cpp-api -lcpprest -lbrpc -lssl -lcrypto -lprotobuf -lleveldb -lpthread -ldl

.PHONY: clean
clean:
	rm -f discovery registry